package com.y.core.interfaces;
import java.util.List;
import java.util.Map;
import org.apache.shiro.authc.SimpleAuthenticationInfo;

import com.y.common.vo.ShiroUser;
import com.y.system.model.User;
/**
 * 定义shirorealm所需数据的接口
 *
 */
public interface IShiro {
	User user(String account);
	ShiroUser shiroUser(User user);
	@SuppressWarnings("rawtypes")
	List<Map> findPermissionsByRoleId(Object userId, String roleId);
	String findRoleNameByRoleId(String roleId);
	SimpleAuthenticationInfo info(ShiroUser shiroUser, User user, String realmName);
}
